package com.njmaomao.gj.pyot.common.bean.dto.yto;

import com.njmaomao.gj.pyot.common.bean.BaseRequest;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class RequestOrderDTO extends BaseRequest {
    private String clientID;
    private String logisticProviderID = "YTO";
    private String customerId;
    private String txLogisticID;
    private String tradeNo;
    private String mailNo;
    private String totalServiceFee;
    private String codSplitFee;
    private String orderType;
    private String serviceType;
    private String flag;
    Sender sender;
    Receiver receiver;
    List<Increment> increments;
    private String sendStartTime;
    private String sendEndTime;
    private String goodsValue;
    private String itemsValue;
    List<Item> items;
    private String insuranceValue;
    private String special;
    private String remark;

    @Getter
    @Setter
    public static class Item {
        private String itemName;
        private String number;
        private String itemValue;
    }

    @Getter
    @Setter
    public static class Increment {
        private String type;
        private String name;
        private String money;
        private String remark;
        private String attr;
    }

    @Getter
    @Setter
    public static class Receiver {
        private String name;
        private String postCode;
        private String phone;
        private String prov;
        private String city;
        private String address;
    }

    @Getter
    @Setter
    public static class Sender {
        private String name;
        private String postCode;
        private String phone;
        private String mobile;
        private String prov;
        private String city;
        private String address;
    }
}

